package com.tyk.bookstore.back.auth.model.type;

import com.fasterxml.jackson.annotation.JsonValue;
import com.tyk.bookstore.back.common.core.model.type.BaseEnum;

/**
 * 验证码登录表单类型：1手机号、2邮箱
 */
public enum CaptchaLoginType implements BaseEnum {

	PHONE(1), EMAIL(2);

	@Override
	public Integer value() {
		return this.value;
	}

	CaptchaLoginType(Integer value) {
		this.value = value;
	}

	@JsonValue
	private final Integer value;

}
